import java.net.InetAddress;
import java.net.ServerSocket;
import java.util.HashMap;
import java.util.LinkedList;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.newtribe.tk.ThreadPool;
import com.newtribe.tk.ThreadPoolFactory;

/**
 * 
 */

/**
 * @author newtribe
 *
 */
public class AppEngine  {

	

	private ThreadPool executeQueue ;
	public static int EXE_QUEUE_SIZE =20 ;
	/**
	 * @return the executeQueue
	 */
	public ThreadPool getExecuteQueue() {
		return executeQueue;
	}
	
	private static AppEngine engine =new AppEngine();

	public static AppEngine getEngine() {
		return engine ;
	}

	/**
	 * @param args
	 */
	public static void main(String[] args)throws Exception {
		// TODO Auto-generated method stub
		AppEngine engine =getEngine();
		engine.start();

	}
	
	public void start()throws Exception {
		Server rdpServer = new RdpServer();
		rdpServer.start();
		executeQueue =ThreadPoolFactory.createPool("RDP EXECUTE QUEUE", EXE_QUEUE_SIZE) ;
	
		//start client and server pair communication thread 
	    
	}
	
	
	
}
